<?php
namespace App\Repositories\BLL;
use App\Repositories\BLL\Repository;
use App\Models\Admins\RoleUser;
use Illuminate\Support\Facades\DB;

class RoleUserBLL extends Repository
{
	public function model()
	{
		return RoleUser::class;
	}
	
	/**
	 * 获取所有角色用户关系
	 */
	public function getAllEntityByUser($id)
	{
		$roles = $this->findByField('user_id',$id,'role_id');
		return $roles;
	}
}